home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / RMI_OS / RMI-PREB / BIN / SERIALVE < prev   
Encoding:
Korn shell script  |  1996-11-08  |  470 b   |  19 lines

  1. #!/bin/ksh -p
  2. #
  3. # RMIHOME must be set so that lib/serialver.properties can be located.
  4. #
  5. PRG=`whence $0` >/dev/null 2>&1
  6. BINDIR=`dirname $PRG`
  7. RMIHOME=`dirname $BINDIR`
  8.  
  9. if [ ! -d "$RMIHOME/lib" ] ; then
  10.     RMIHOME=/vob/java/build
  11. fi
  12.  
  13. if [ ! -r "$RMIHOME/lib/serialver.properties" ] ; then
  14.     echo "Could not read properties file: $RMIHOME/lib/serialver.properties" 1>&2
  15.     exit 1
  16. fi
  17.  
  18. java -Drmi.home=$RMIHOME -ms8m sun.tools.serialver.SerialVer $*
  19.